<%-- 
    Document   : buu
    Created on : 25/03/2014, 03:57:22 PM
    Author     : nicardonaa
--%>

<%@page import="java.util.List"%>
<%@page import="com.udistrisisbici.vo.UsuarioVO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Admin1</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="description" content="Slide Down Box Menu with jQuery and CSS3" />
        <meta name="keywords" content="jquery, css3, sliding, box, menu, cube, navigation, portfolio, thumbnails"/>
        <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/>
        <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen"/>
        <style type="text/css">@import "../css/UsuStyle.css";</style>
        <style>
            body{
                background:#333 url(../img/bg.jpg) repeat top left;
                font-family:Arial;
            }
            h1.title{
                color: transparent;
                background:transparent url(../img/title.png) no-repeat top left;
                width:100%;
                height:69px;
                margin: 0 auto;
            }
        </style>
    </head>
    <body>
        <div id="envoltura">
            <form class="contact_form" action="../BuscarUsu">
                <div class="content">
                    <h1 class="title">Slide Down Box Menu with jQuery and CSS3</h1>
                </div>
                <br>
                <label>Buscar_por_Numero_identificacion:</label>
                <input type="text" style="text-aling:center" name="buscarId" size="40" maxlength="11" pattern="[0-9]+" title="Sólo debe ingresar números">
                <br>
                <label>Buscar_por_Codigo_Ud:</label>
                <input type="text" style="text-align:center" name="buscarCod" size="40" maxlength="15" pattern="[0-9]+" title="Sólo debe ingresar números">
                <br>
                <label>Buscar_por_Nombres:</label>
                <input type="text" style="text-align:center" name="buscarNombres" size="40" maxlength="30" pattern="[A-Za-z ]+" title="El nombre no debe contener números">
                <br>
                <label>Buscar_por_Apellidos:</label>
                <input type="text" style="text-align:center" name="buscarApellidos" size="40" maxlength="20" pattern="[A-Za-z ]+" title="Los apellidos no deben contener números">
                <br>
                <button class="submit" type="submit">BUSCAR</button>
            </form>
        </div>

        <br>
        <br>

        <%
            List<UsuarioVO> lista = (List<UsuarioVO>) session.getAttribute("ListaUsu");
            if (lista != null) {

                out.println("<table class='tablesorter'>");
                out.println("<thead>");
                out.println("<tr>");
                out.println("<th>Numero_id</th>");
                out.println("<th>CodigoUd</th>");
                out.println("<th>Nombres</th>");
                out.println("<th>Apelidos</th>");
                out.println("<th>Telefono</th>");
                out.println("</tr>");
                out.println("</thead>");
                out.println("<tbody>");

                for (int i = 0; i < lista.size(); i++) {
                    out.println("<tr>");
                    out.println("<td>" + lista.get(i).getNumIdentificacion() + "</td>");
                    out.println("<td>" + lista.get(i).getCodigoUD() + "</td>");
                    out.println("<td>" + lista.get(i).getNombres() + "</td>");
                    out.println("<td>" + lista.get(i).getApellidos() + "</td>");
                    out.println("<td>" + lista.get(i).getTelefono() + "</td>");
                    out.println("</tr>");
                }
            }
            out.println("</tbody>");
            out.println("</table>");
        %>

    </body>   
</html>
